package middleware

import (
	"gitee.com/pangxianfei/frame/library/config"
	"gitee.com/pangxianfei/frame/request"
)

func AppMiddle() request.HandlerFunc {
	return func(ctx request.Context) {
		ctx.Set("AppId", config.Instance.AppNo.Login)
		ctx.Next()
	}
}
